﻿<?xml version="1.0" encoding="utf-8" ?>
<CommandConfiguration xmlns="http://tempuri.org/HostCommandDefinitions.xsd">
  <CommandName>Generate MAC (MAB) using ANSI X9.19 for large message.</CommandName>
  <Request>MS</Request>
  <Response>MT</Response>

  <Field>
    <Name>Message Block</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>0</ValidValue>
    <ValidValue>1</ValidValue>
    <ValidValue>2</ValidValue>
    <ValidValue>3</ValidValue>
    <RejectionCodeIfInvalid>05</RejectionCodeIfInvalid>
  </Field>

  <Field>
    <Name>Key Type</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>0</ValidValue>
    <ValidValue>1</ValidValue>
    <RejectionCodeIfInvalid>04</RejectionCodeIfInvalid>
  </Field>

  <Field>
    <Name>Key Length</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>0</ValidValue>
    <ValidValue>1</ValidValue>
    <RejectionCodeIfInvalid>06</RejectionCodeIfInvalid>
  </Field>

  <Field>
    <Name>Message Type</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>0</ValidValue>
    <ValidValue>1</ValidValue>
    <RejectionCodeIfInvalid>03</RejectionCodeIfInvalid>
  </Field>

  <Field>
    <Name>Key</Name>
    <IncludeFile>MultiFormatKey.xml</IncludeFile>
  </Field>

  <Field>
    <Name>IV</Name>
    <Length>16</Length>
    <Type>Hexadecimal</Type>
    <DependentField>Message Block</DependentField>
    <DependentValue>2,3</DependentValue>
    <ExclusiveDependency>false</ExclusiveDependency>
  </Field>

  <Field>
    <Name>Message Length</Name>
    <Length>4</Length>
    <Type>Hexadecimal</Type>
  </Field>

  <Field>
    <Name>Message</Name>
    <Length>0</Length>
    <Type>Character</Type>
  </Field>

</CommandConfiguration>
